About the Demo

This demo shows one way to plug into the ECO architecture. It makes use of the  IPersistenceHandler interface to intercept when fetching objects and attributes one at a time. When an object is loaded, a message is written to a log.

Setup Information

This demo uses DEMO.IB in the directory of the demo for persistence. 

Running the Demo

  1. Start the IDE
  2. Open the LazyFetchAlert.bdsproj
  3. Compile and run
  4. Click Create Schema, then Activate  
  5. Click Open normal form, and add a couple of objects. Close the form again.
  6. Click Update DB
  7. Click Deactivate, then Activate
  8. Click either Open normal form or Open optimized form. Observe the difference in the Log. You need to deactivate and activate in between to force the ecospace to fetch the objects.